﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLBH.DataModel;
using QLBH.Base;
using QLBH.ModelInterface;

namespace QLBH.FeatureModel
{
    public class UserManagementModel:IUserManagementModel
    {
        public Guid NhanVienID
        {
            set;
            get;
        }
        public String TenNV { set; get; }
        public String UserName { set; get; }
        public DateTime NgaySinh { set; get; }
        public byte[] Password { set; get; }
        public void InitFromEntity(ACOUNT entity)
        {            
            NhanVienID = entity.NHANVIENID;
            TenNV = entity.NHANVIEN.TENNV;
            UserName = entity.UserName;
            Password = entity.Pass;
            NgaySinh = (DateTime)entity.NHANVIEN.NGAYSINH;
        }

        public ACOUNT ToEntity()
        {
            throw new NotImplementedException();
        }
    }
}
